const { collections } = require("../db/config");
const operation=require("../db/operation")


function addGoods(){
    console.log("goodsModel addAllGoods");
}
function deleteGoods(){
    console.log("goodsModel deleteGoods");
}
function aupdateGoods(){
    console.log("goodsModel aupdateGoods");
}
function getAllGoods(){
    console.log("goodsModel getAllGoods");
   return operation.execRetrieve(collections.goods)
}
function addGoodsByPage(){
    console.log("goodsModel ddGoodsByPage");
    db.close();
}
module.exports={
    addGoods,
    deleteGoods,
    aupdateGoods,
    getAllGoods,
    addGoodsByPage
}